"use strict"

/**
 * 张家口市政府爬虫
 *  
 */


var Base = require("./base");
var zjk_spider = new Base();
zjk_spider.name = "张家口市政府采购网";

zjk_spider.getPageUrl = function (pg) {
  return "http://www.zjk.gov.cn/zdzt.jsp?code=C_1_12&pages=" + pg + "&pagesize=21";
};

zjk_spider.getItems = function ($) {
  var items = [];
  $(".hg.f14px").each(function (index, ele) {
    var e = $(ele);
    var item = {};
    item.title = e.text();
    item.url = "http://www.zjk.gov.cn" + e.attr("href");
    item.source = zjk_spider.name;
    items.push(item);
  });
  return items;
};


exports = module.exports = zjk_spider;